﻿using Microsoft.EntityFrameworkCore;
using Volo.Abp.Data;
using Volo.Abp.EntityFrameworkCore;

namespace OrderTrace.EntityFrameworkCore
{
    [ConnectionStringName(OrderTraceDbProperties.ConnectionStringName)]
    public class OrderTraceDbContext : AbpDbContext<OrderTraceDbContext>, IOrderTraceDbContext
    {
        /* Add DbSet for each Aggregate Root here. Example:
         * public DbSet<Question> Questions { get; set; }
         */

        public DbSet<Tpopf001> Tpopf001 { get; set; }

        public DbSet<Tpopf002> Tpopf002 { get; set; }

        public OrderTraceDbContext(DbContextOptions<OrderTraceDbContext> options) 
            : base(options)
        {

        }

        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);

            builder.ConfigureOrderTrace();
        }
    }
}